{{#extends @community.html}}

{{:title}}
    {{community.title}}
{{/:title}}

{{:init}}
    {{!connect "master.css" media="all" charset="utf-8"}}
    {{!connect "content.css" media="all" charset="utf-8"}}
    {{!connect "screen/content-create.css" media="all" charset="utf-8"}}
    {{!connect "screen/community-head.css" media="screen" charset="utf-8"}}
    {{!connect "screen/portal.css" media="screen" charset="utf-8"}}
    {{!connect "screen/footer.css" media="screen" charset="utf-8"}}
    {{!connect "screen/layout-standard.css" media="screen" charset="utf-8"}}
    {{!connect "screen/content-cindex.css" media="screen" charset="utf-8"}}
    {{!connect "screen/widgets-default.css" media="screen" charset="utf-8"}}
    {{!connect "tinymce/tiny_mce_src.js"}}
	{{!connect "tiny_mce_start.js"}}
	{{!connect "calendar-blue.css"}}
	{{!connect "screen/quest/quest.css"}}
	{{!connect "jscalendar/calendar.js"}}
	{{!connect "jscalendar/calendar-ru.js"}}
	{{!connect "jscalendar/calendar-setup.js"}}
	{{!connect "quest/create.js"}}

    {{!connect "screen/content-quest.css" media="screen" charset="utf-8"}}

    {{!connect "cpaint2.inc.js"}}
    {{!connect "misc.js"}}

    {{!connect "jquery.js"}}

    {{!connect "jplugins/jtemplates.js"}}
    <!-- {{!connect "jplugins/interface.js"}} -->
    {{!connect "jplugins/interface/idrag.js"}}
    {{!connect "jplugins/interface/idrop.js"}}
    {{!connect "jplugins/interface/iutil.js"}}
    {{!connect "jplugins/interface/isortables.js"}}

    {{!connect "jplugins/custom.js"}}

    <!-- RSS записей сообщества -->
    {{@:connect_rss url=@:rss_url title=@:rss_title}}
    {{:rss_title}}Все записи сообщества{{/:rss_title}}
    {{:rss_url}}{{/}}{{community.url}}/feed.xml{{/:rss_url}}

    <!-- RSS комментов сообщества -->
    {{@:connect_rss url=@:rss_comments_url title="Все комментарии сообщества"}}
    {{:rss_comments_url}}{{/}}{{community.url}}/comments.xml{{/:rss_comments_url}}

	{{!connect "quest/create.js"}}
{{/:init}}


{{:settings_button}}
{{?livepage}}
     <li class="moderator-" id="mod-interface"><a>Включить режим модератора</a></li>
        <!-- HACK : 2008-02-11 : lucky #375 -->
        <!-- подключаем TinyMCE тут для виджетов,
        т.к. вижет не может сделать это при помощи ajax -->
        {{!connect "tinymce/tiny_mce_src.js"}}
        {{!connect "tiny_mce_start.js"}} <!-- Constructs TinyMCE default config and tinyMCE.init(config) -->
{{/?}}
{{/:settings_button}}


{{:body}}
    {{@:community_head}}
    <!-- content zone -->
    <!-- Вот тут класс widgetcolumn это колонка в которой будет drag, а класс widget это итем которые таскается -->
    <div class="content-cindex layout-standard">
        <div class="layout-c-left widgetcolumn wg-droppable" id="column0">
            {{@html/widgets/widget.html:addwidget_button}}
            {{column0}}
        </div>
        <div class="layout-c-right widgetcolumn wg-droppable" id="column2">
            {{column2}}
        </div>
        <div class="layout-c-main content-create">
            <div id="column1">
            {{@:realbody}}
            </div>
        </div>
    </div>

    {{@html/common/footer.html}}
{{/:body}}

{{:realbody}}
{{@:steps_panel}}
	<div class="quest-clear"></div>
<form method="post">
	<div class="quest-content">
		<div class="quest-content-r">
			<div class="field-">

{{?step==0}}{{@html/quest/create/step0.html}}{{/?}}
{{?step==1}}{{@html/quest/create/step1.html}}{{/?}}
{{?step==2}}{{@html/quest/create/step2.html}}{{/?}}
{{?step==3}}{{@html/quest/create/step3.html}}{{/?}}
{{?step==4}}{{@html/quest/create/step4.html}}{{/?}}
<div class="quest-clear"></div>
	<center>
	<input type="hidden" name="step" value="{{cur_step}}">
	{{?save_btn}}
		<input type="image" name="save" src="{{images}}quest/but-save.gif" alt="Сохранить" class="submit-" />
	{{/?}}
	{{?save_btn && publish_btn}}
		&nbsp;&nbsp;&nbsp;&nbsp;
	{{/?}}
	{{?publish_btn}}
		<input type="image" name="publish" src="{{images}}quest/but-public.gif" alt="Опубликовать" class="submit-" />
	{{/?}}
	{{?next_btn}}
		<input type="image" name="next" src="{{images}}quest/quest-button-{{display_step}}.gif" alt="Сохранить и перейти к следующему шагу" class="submit-" />
	{{/?}}
	{{?finish_btn}}
		<!--input type="image" name="save" src="{{images}}quest/but-finish.gif" alt="Завершить" class="submit-" /-->
		<input type="image" name="save" src="{{images}}quest/but-save.gif" alt="Сохранить" class="submit-" />
	{{/?}}
	</center>
			</div>
		</div>
	</div>
	<div class="quest-clear"></div><div class="quest-content-b"><div><div></div></div></div>
</form>


{{/:realbody}}

{{:steps_panel}}
<h1 class="quest-header">{{?edit}}Редактирование квеста{{?:}}Создание квеста{{/?}}: <font>{{?step==4 && not_finished}}Завершение{{?:}}шаг {{display_step}}{{/?}}</font></h1>
<ul class="quest-tabs">
{{!for steps do=@:steps_panel_btn}}
</ul>
{{:steps_panel_btn}}
	<li{{?*cur || *big}} class="{{?*cur}}quest-tab-active{{/?}}{{?*big}} quest-tabs-big{{/?}}"{{/?}}>{{?*url && !*cur}}<a href="{{*url}}">{{*n}}</a>{{?:}}{{*n}}{{/?}}</li>
{{/:steps_panel_btn}}
{{/:steps_panel}}
